soundFinishedOnChannel
Type
message
Summary
Sent to the object which played a sound when a sound finishes playing.
Syntax
soundFinishedOnChannel <pChannel>, <pSound>
Description
Handle the soundFinishedOnChannel message if you want to perform a task or take an action when a sound finishes playing.
When a sound has finished playing naturally (not stopped or replaced) on a given channel the soundFinishedOnChannel message is sent to the object which played the sound.
Parameters
Name | Type | Description |
---|---|---|
pChannel | The name of the channel the sound was played on. | |
pSound | The sound file that was played. |
Examples
soundFinishedOnChannel theChannel, theSound
soundFinishedOnChannel "queued", "sounds/warning.mp4"
on soundFinishedOnChannel pChannel, pSound
put pChannel into field "channel"
put pSound into field "finished sound"
end soundFinishedOnChannel
Related
command: mobileDeleteSoundChannel, mobilePlaySoundOnChannel, mobileSetSoundChannelVolume, mobilePausePlayingOnChannel, mobileStopPlayingOnChannel, mobileResumePlayingOnChannel
function: mobileSoundChannelVolume, mobileSoundOnChannel, mobileNextSoundOnChannel, mobileSoundChannels, mobileSoundChannelStatus
Compatibility and Support
Introduced
LiveCode 4.6
OS
ios
android
Platforms
mobile